<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/6/24
 * Time: 13:11
 */
namespace app\common;

use think\Controller;

class Common extends Controller{
    protected $config_session;
    //初始化
    public function _initialize()
    {
        //不设置过期时间是保证跟小程序session_key过期时间保持同步
        $this->config_session = array(
            'prefix'            => 'api',       // session 名称前缀
            //'expire'            => 7200,        // session 过期时间
            'use_trans_sid'     =>  0,          //跨页传递
            'use_only_cookies'  =>  0,          //是否只开启基于cookies的session的会话方式
        );
    }
}